<div class="container">
    <div class="column span-18 colborder">
        
        <?php if(isset($this->friends[0]) && is_array($this->friends)):?>
        <?php foreach($this->friends as $key=>$friend):?>
        <?php 
            $isMyBuddy = $friend['isMyBuddy'];
            $user      = $friend['user'];
        ?>
        <div class="clearfix append-bottom">
            <div class="column left">
                <?php 
                echo $this->partial('script_avatar-small.phtml', array(
                        'author'    => $user,
                ));            
                ?>
            </div>
            <div class="column left">
                <div class="nickname">
                    <?php 
                    echo $this->partial('script_nickname.phtml', array(
                            'author'    => $user,
                    ));            
                    ?>
                </div>
                <div class="buddy prepend-top">
                    <?php 
                    echo $this->partial('script_buddy.phtml', array(
                            'author'    => $user,
                            'isMyBuddy' => $isMyBuddy,
                    ));            
                    ?>
                </div>
            </div>
        </div>
        <hr>
        <?php endforeach;?>
        <?php else:?>
        No friend
        <?php endif;?>

        <div class="paginator">
            <?php echo $this->paginationControl($this->paginator, 'Elastic', 'script_pagelist.phtml'); ?>
        </div>

    </div>
    <div class="column span-5 last">
        <?php 
        echo $this->partial('module_home_script_sidebar.phtml', array(
             'author'       => $this->author,
        ));
        ?>
    </div>
    
</div>